Does GPG allow encryption of multiple files using a wild card like *filename*? [on hold]
Posted
by
user47427
on Programmers
See other posts from Programmers
or by user47427
Published on 2014-05-28T18:22:09Z
Indexed on
2014/05/28
22:01 UTC
Read the original article
Hit count: 140
encryption
I am trying to automate the encryption of files on a windows server using a .bat file I created. As long as the filename is hardcoded in the .bat file this works. I want to encrypt numerous files using this .bat file but files are not encrypted when I use wildcards in the filename like filename.txt. I've been trying various version of the following command at the DOS prompt to no avail. All attempts have returned syntax for usage.
C:\gpg -v --batch -- yes --always-trust -e -r <encryption-key> *part-of-the-file-name*
usage: gpg [options] --encrypt [filename]
I received the same usage message with this command: C:\gpg -v --batch -- yes --always-trust -e -r --encrypt part-of-the-file-name
I tried without the -v and some of the other options and I still received the same message.
I have spent hours today searching the internet for an answer and I can't find one anywhere? Please help.
© Programmers or respective owner